package com.service;

import com.pepository.dao.WordTableRepository;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class WordTableService {

    @Autowired
    private WordTableRepository wordTableRepository;

    public boolean hasByUserIdAndWord(Long userId, String word) {
        return wordTableRepository.hasByUserIDAndWord(userId, word) > 0;
    }
}
